<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs for page func.nct.core.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="file-name"><img src="../media/images/Page_logo.png" alt="File" style="vertical-align: middle">/system/core/func.nct.core.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-functions">Functions</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">func.nct.core.php</p>
<p class="description"><p>PHP Version 5</p><p>Global functions that can be used all around the framework</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Ervin Musngi &lt;<a href="mailto:ervinmusngi@gmail.com">ervinmusngi@gmail.com</a>&gt;</li>
				<li><span class="field">version:</span> SVN: &lt;tortoise&gt;</li>
				<li><span class="field">copyright:</span> 2011 Ervin Musngi</li>
				<li><span class="field">link:</span> <a href="http://netcoretech.com/php/">http://netcoretech.com/php/</a></li>
				<li><span class="field">license:</span> <a href="http://netcoretech.com">Net-Coret-Tech</a></li>
			</ul>
		
			</div>
</div>
		

	
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functionautoload_class" id="functionautoload_class"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">autoload_class</span> (line <span class="line-number">147</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">Array</span>
		<span class="method-name">
			autoload_class
		</span>
				()
			</div>

		
	
</div>
<a name="functionautoload_config" id="functionautoload_config"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">autoload_config</span> (line <span class="line-number">186</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">Array</span>
		<span class="method-name">
			autoload_config
		</span>
				()
			</div>

		
	
</div>
<a name="functionbase_url" id="functionbase_url"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">base_url</span> (line <span class="line-number">213</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> <p>The current Host</p><p>Here is an inline example :</p><p><div class="src-code"><ol><li><div class="src-line">&nbsp;&nbsp;&nbsp;echo&nbsp;<a href="../Core/_system---core---func.nct.core.php.html#functionbase_url">base_url</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
</ol></div></p><p>Output :</p><p>www.sample.com/</p></li>
			</ul>
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			base_url
		</span>
				()
			</div>

		
	
</div>
<a name="functionform_error" id="functionform_error"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">form_error</span> (line <span class="line-number">266</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			form_error
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$key</span> = <span class="var-default">&#039;&#039;</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$key</span><span class="var-description">: - The Input or Form element name</span>			</li>
				</ul>
		
	
</div>
<a name="functionform_value" id="functionform_value"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">form_value</span> (line <span class="line-number">292</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			form_value
		</span>
					([<span class="var-type">type</span>&nbsp;<span class="var-name">$key</span> = <span class="var-default">&#039;&#039;</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$key</span><span class="var-description">: - The Input or Form element name</span>			</li>
				</ul>
		
	
</div>
<a name="functionget_autoload" id="functionget_autoload"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">get_autoload</span> (line <span class="line-number">169</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">Array</span>
		<span class="method-name">
			get_autoload
		</span>
				()
			</div>

		
	
</div>
<a name="functionget_config" id="functionget_config"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">get_config</span> (line <span class="line-number">126</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">Array</span>
		<span class="method-name">
			get_config
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">&#039;&#039;</span>], [<span class="var-type">String</span>&nbsp;<span class="var-name">$item</span> = <span class="var-default">&#039;&#039;</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$name</span><span class="var-description">: - Name of the configuration file</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$item</span><span class="var-description">: - Array Variable of the configuration file</span>			</li>
				</ul>
		
	
</div>
<a name="functionget_instance" id="functionget_instance"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">get_instance</span> (line <span class="line-number">107</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> Instance</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">Framework</span>
		<span class="method-name">
			get_instance
		</span>
				()
			</div>

		
	
</div>
<a name="functionload_class" id="functionload_class"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">load_class</span> (line <span class="line-number">60</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">staticvar:</span> array $_className: </li>
			</ul>
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			load_class
		</span>
					(<span class="var-type">String</span>&nbsp;<span class="var-name">$class</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$directory</span> = <span class="var-default">&#039;libraries&#039;</span>], [<span class="var-type">String</span>&nbsp;<span class="var-name">$param</span> = <span class="var-default">&#039;&#039;</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$class</span><span class="var-description">: <ul><li>Name of the class that will be loaded</li></ul></span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$directory</span><span class="var-description">: - The current directory of the class</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$param</span><span class="var-description">: <ul><li>The parameters that will be put into the constructor</li></ul></span>			</li>
				</ul>
		
	
</div>
<a name="functionsite_url" id="functionsite_url"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">site_url</span> (line <span class="line-number">246</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			site_url
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$uri</span> = <span class="var-default">&#039;&#039;</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$uri</span><span class="var-description">: <p>- The URI of the  page</p><p>Here is an inline example :</p><p><div class="src-code"><ol><li><div class="src-line">&nbsp;&nbsp;&nbsp;echo&nbsp;<a href="../Core/_system---core---func.nct.core.php.html#functionsite_url">site_url</a><span class="src-sym">(</span><span class="src-str">'welcome/home'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
</ol></div></p><p>Output :</p><p>www.sample.com/welcome/home</p></span>			</li>
				</ul>
		
	
</div>
<a name="function__verify_method_type" id="function__verify_method_type"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">__verify_method_type</span> (line <span class="line-number">31</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			__verify_method_type
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$class</span> = <span class="var-default">&#039;&#039;</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$method</span> = <span class="var-default">&#039;&#039;</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$class</span><span class="var-description">: <ul><li>Name of the Class</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$method</span><span class="var-description">: - Name of the Class Method</span>			</li>
				</ul>
		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Wed, 08 Feb 2012 00:34:54 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>